package com.pickgliss.utils
{
	import flash.utils.Dictionary;
	import flash.utils.getTimer;

	public class DebugUtils
	{
		public function DebugUtils()
		{
		}
		
		private static var _lastTimes:Dictionary;
		
		public static function traceTimeGape(id:String):void
		{
			if(_lastTimes == null)
			{
				_lastTimes = new Dictionary();
			}
			var last:int = _lastTimes[id];
			_lastTimes[id] = getTimer();
			if(last > 0)trace(id+" timeGape : "+String(_lastTimes[id] - last));
		}
	}
}